package com.example.utils;

import java.io.File;

/**
 * @Classname PathUtils
 * @Description TODO
 * @Date 2022/5/29 9:44
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public class PathUtils {

  public static String getPath(){
      String path = System.getProperty("user.dir");
      return path;
  }

  public static String getParentPath(){
      String path=getPath();
      File file = new File(path);
      File parent=file.getParentFile();
      return parent.getPath();
  }

}
